/**
 * @author Jon Adams
 */
package org.osflash.signals.natives.sets;

import org.osflash.signals.natives.NativeSignal;
import flash.display.LoaderInfo;
import flash.events.Event;
import flash.events.HTTPStatusEvent;
import flash.events.IOErrorEvent;
import flash.events.ProgressEvent;

class LoaderInfoSignalSet extends EventDispatcherSignalSet {
	public var complete(getComplete, never) : NativeSignal;
	public var httpStatus(getHttpStatus, never) : NativeSignal;
	public var init(getInit, never) : NativeSignal;
	public var ioError(getIoError, never) : NativeSignal;
	public var open(getOpen, never) : NativeSignal;
	public var progress(getProgress, never) : NativeSignal;
	public var unload(getUnload, never) : NativeSignal;

	public function new(target : LoaderInfo) {
		super(target);
	}

	public function getComplete() : NativeSignal {
		return getNativeSignal(Event.COMPLETE);
	}

	public function getHttpStatus() : NativeSignal {
		return getNativeSignal(HTTPStatusEvent.HTTP_STATUS, HTTPStatusEvent);
	}

	public function getInit() : NativeSignal {
		return getNativeSignal(Event.INIT);
	}

	public function getIoError() : NativeSignal {
		return getNativeSignal(IOErrorEvent.IO_ERROR, IOErrorEvent);
	}

	public function getOpen() : NativeSignal {
		return getNativeSignal(Event.OPEN);
	}

	public function getProgress() : NativeSignal {
		return getNativeSignal(ProgressEvent.PROGRESS, ProgressEvent);
	}

	public function getUnload() : NativeSignal {
		return getNativeSignal(Event.UNLOAD);
	}

}

